using System;
using System.Collections.Generic;
using System.Text;

namespace IShop.BackEnd
{
    public class UserController
    {
        public bool CheckUser(string username, string password)
        {
            ShopUser user = new ShopUser();
            user.Name = "N1";

            PersistenceManager pm = new PersistenceManager();
            pm.Save<ShopUser>(user);
            if (username == "alex" && password == "123") return true;
            return false;
        }
    }
}
